#!/bin/sh

# generate libhelloworld.a
cd hello-world-lib
rm -rf build
mkdir -p build
cd build
cmake ..
make


# copy libhelloworld.a to test/libs/
cp libhelloworld.a ../../test/libs


# generate helloworld.elf
cd ../../test
rm -rf build
mkdir -p build
cd build
cmake ..
make
./helloworld.elf


